/**
 * jims
 */
package com.jims.master.modules.patient.myAttention.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.patient.myAttention.entity.PatFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO接口
 * @author jicunteng
 * @version 2017-05-23
 */
@MyBatisDao
public interface PatFollowDao extends CrudDao<PatFollow> {

    /**
     * 查询用户关注列表
     * @param
     * @return
     * @author jicunteng
     */
    public List<PatFollow> findUserPatFollow(PatFollow patFollow);

    /**
     * 删除用户关注
     * @param
     * @param doctorId
     * @return
     * @author jicunteng
     */
    public int deleteUserPatFollow(@Param("personId") String personId,@Param("doctorId") String doctorId);

    /**
     * 查询是否已经关注
     * @return
     * @author chentao
     */
    public PatFollow getPatFollowByUser(PatFollow patFollow);
	
}